﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="BaseConfig.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Site.BaseConfig" Title="基础设置" %>
<%@ Register src="Wuc_ConfigTip.ascx" tagname="Wuc_ConfigTip" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <script type="text/javascript" src="/Cellula_client/ImagePreview/CJL.0.1.min.js"></script>
    <script type="text/javascript" src="/Cellula_client/ImagePreview/ImagePreview.js"></script>
   <script type="text/javascript">
        var imgPreview = null;
        function PageOnLoad(){
            imgPreview = new ImagePreview( $$(fixId("file_Logo")), $$(fixId("img_Preview")), {
	            maxWidth: 500, maxHeight: 300, action: ""
            });
            //imgPreview.img.src = ImagePreview.TRANSPARENT;
            imgPreview.file.onchange = function(){ imgPreview.preview(); };
       }
    </script>
 </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
    基础设置</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <uc1:Wuc_ConfigTip ID="Wuc_ConfigTip1" runat="server" />
    <div class="action_bar">
        <asp:Button ID="btn_save" runat="server" Text="保存" OnClick="btn_save_Click" />
        <input type="reset" value="重置" />
    </div>
    <fieldset>
        <legend>配置项</legend>
        <table border="0" cellpadding="0" cellspacing="0" class="edit_form">
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">网站名称：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_SiteName"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">页面标题：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_SiteTitle"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">Copyright：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Copyright" Width="500px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">Logo：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:FileUpload runat="server" ID="file_Logo" Width="500px" />
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <asp:Image runat="server" ID="img_Preview" />
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
